var siteinfo = require("../siteinfo.js"), _api_root = "", _api_xcx_root = "",_api_live_root = "";

if (-1 != siteinfo.acid) {
    _api_live_root = siteinfo.sitelive;//sg添加
    _api_root = siteinfo.siteroot;
    _api_xcx_root = siteinfo.siteroot + 'index.php?s=/api/'; //PHP小程序地址
} else _api_root = siteinfo.apiroot;

var api = {
    siteinfo:siteinfo,
    index: _api_root + "default/index",
    passport: {
        login: _api_xcx_root + "user/login",
    },
    user: {
        userdetail: _api_xcx_root + "user/detail",
        user_binding: _api_live_root + "newaction/phonegap",
        customer_wx_info:_api_live_root + "newaction/getCustomerWxInfo"
    },
    miaosha: {
        list: _api_live_root + "/newminiaction/mslist?hosId=1",
    },
};

module.exports = api;